package tk.xboot.boot.conf;

import org.springframework.boot.autoconfigure.web.servlet.HttpEncodingAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.SchedulingConfigurer;
import org.springframework.scheduling.config.ScheduledTaskRegistrar;
import org.springframework.web.filter.CharacterEncodingFilter;

import java.util.concurrent.Executors;

@Configuration

public class ScheduleConf implements SchedulingConfigurer {
    HttpEncodingAutoConfiguration configuration;
    CharacterEncodingFilter filter;

    @Override
    public void configureTasks(ScheduledTaskRegistrar scheduledTaskRegistrar) {
        scheduledTaskRegistrar.setScheduler(Executors.newScheduledThreadPool(5));
    }
}

